/**
 * Created by yoyoyk on 2017/7/18.
 */
import Relay from "react-relay";
export default class listWorkGroupProInfoMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { listWorkGroupProInfo }`;
    }

    getVariables() {
        return {
            argsInput: {
                startDate: this.props.startDate,
                workGroupId: this.props.workGroupId,
                requestPlat: this.props.requestPlat,
                enterpriseId: this.props.enterpriseId,
                endDate: this.props.endDate,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on listWorkGroupProInfoPayload  {
            listWorkGroupProInfo {
                errorCode
                value
                proWorkGroupList{
                    workGroupId
                    workShopName
                    name
                }
                stylePlanReports
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
              fragment on listWorkGroupProInfoPayload  {
                     listWorkGroupProInfo {
                        errorCode
                        value
                        proWorkGroupList{
                            workGroupId
                            workShopName
                            name
                        }
                        stylePlanReports
                    }
                 }
            `]
        }];
    }

}
